<%@ page import="cn.gudian.cms.GuestBook.BackGuest" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title><g:message code="backGuest.list" default="BackGuest List"/></title>
  <script language="javascript" src="/js/list-min.js"></script>
</head>
<body>
<div class="nav">
  <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home"/></a></span>
  <span class="menuButton"><g:link class="create" action="create"><g:message code="backGuest.new" default="New BackGuest"/></g:link></span>
</div>
<div class="body">
  <h1><g:message code="backGuest.list" default="BackGuest List"/></h1>
  <g:if test="${flash.message}">
    <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}"/></div>
  </g:if>
  <g:form action="deleteAll" name="listForm" method="post">
    <input type="hidden" name="qstr" id="qstr">
    <div class="list">
      <table>
        <thead>
        <tr>
          <th width="30"><g:message code="chose" default="Chose"/></th>

          <g:sortableColumn property="id" title="Id" titleKey="backGuest.id"/>

          <g:sortableColumn property="webUrl" title="Web Url" titleKey="backGuest.webUrl"/>

          <g:sortableColumn property="contact" title="Contact" titleKey="backGuest.contact"/>

          <g:sortableColumn property="content" title="Content" titleKey="backGuest.content"/>

          <g:sortableColumn property="subTime" title="Sub Time" titleKey="backGuest.subTime"/>



          <th width="30"><g:message code="edit" default="Edit"/></th>
        </tr>
        </thead>
        <tbody>
        <g:each in="${backGuestInstanceList}" status="i" var="backGuestInstance">
          <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

            <td><input name="listId" type="checkbox" id="listId" value="${backGuestInstance.id}"/></td>
            <td><g:link action="show" id="${backGuestInstance.id}">${fieldValue(bean: backGuestInstance, field: "id")}</g:link><gd:formatBoolean boolean="${backGuestInstance.solve}" true="&nbsp;" false="['未解决']" /></td>

            <td>${fieldValue(bean: backGuestInstance, field: "webUrl")}</td>

            <td>${fieldValue(bean: backGuestInstance, field: "contact")}</td>

            <td>${fieldValue(bean: backGuestInstance, field: "content")}</td>

            <td><g:formatDate date="${backGuestInstance.subTime}"/></td>

     

            <td><g:link action="edit" id="${backGuestInstance.id}"><img src="/images/skin/database_edit.png"/></g:link></td>
          </tr>
        </g:each>
        </tbody>
      </table>
    </div>
  </g:form>
  <div class="paginateButtons">
    <a href="javascript:selAll()"><g:message code="allChose" default="allChose"/></a> <a href="javascript:noSelAll()"><g:message code="cancel" default="Cancel"/></a><a href="javascript:delArc(0)">&nbsp;<g:message code="delete" default="Delete"/>&nbsp;</a>
    &nbsp;&nbsp;<a href="javascript:audit(0)">&nbsp;已经解决&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<g:paginate total="${backGuestInstanceTotal}"/>
  </div>
</div>
</body>
</html>
